package com.cj.dao;
import com.cj.po.Dormgrade;
import com.cj.po.Student;
import org.apache.ibatis.annotations.Param;


import java.util.List;
import com.cj.po.Dormgrade;
import org.apache.ibatis.annotations.Param;


import java.util.List;

/**
 * 管理员DAO层接口
 */
public interface DormgradeDao {
    //获取总条数
    public Integer totalCount(@Param("d_id") Integer d_id, @Param("s_studentid")Integer s_studentid,
                              @Param("d_dormbuilding")String  d_dormbuilding,@Param("d_bedtotal")Integer  d_bedtotal,@Param("d_bed")Integer  d_bed,@Param("a_name")String  a_name);
    //获取用户列表
    public List<Student> getDormgradeList(@Param("d_id") Integer d_id, @Param("s_studentid")Integer s_studentid,
                                        @Param("d_dormbuilding")String  d_dormbuilding,@Param("d_bedtotal")Integer  d_bedtotal,@Param("d_bed")Integer  d_bed,@Param("a_name")String  a_name);
    public int deleteStudent(Integer s_id);   //删除学生信息
    public int addStudent(Student student);   //添加学生信息
    public int updateStudent(Student student); //修改学生信息
    public Student findStudentById(Integer s_id);
    public List<Student> getAll();

    Integer totalCount(Integer d_id, Integer s_dormitoryid, String d_dormbuilding, Integer d_bed, String a_name, Integer pageIndex, Integer pageSize);

    List<Dormgrade> getDormgradeList(Integer d_id, Integer s_dormitoryid, String d_dormbuilding, Integer d_bed, String a_name, Integer pageIndex, Integer pageSize, int i, Integer pageSize1);
//    public List<Student> getStudentList(@Param("d_id") Integer d_id, @Param("s_studentid")Integer s_studentid,
//                                        @Param("d_dormbuilding")String  d_dormbuilding,@Param("d_bedtotal")Integer  d_bedtotal,@Param("d_bed")Integer  d_bed,@Param("a_name")String  a_name
}
